package me.boot.dfs.aliyun;

import com.aliyun.oss.OSSClient;
import me.boot.dfs.api.DfsFile;
import me.boot.dfs.api.DfsService;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @Description:
 * @author: Sylar
 * @date: 2021年12月06日 4:30 下午
 */
public class AliyunDfsServiceImpl implements DfsService {

    @Autowired
    OSSClient ossClient;

    @Override
    public String uploadToken(String bucket) {
        return null;
    }

    @Override
    public String uploadToken(String bucket, String key) {
        return null;
    }

    @Override
    public void createBucket(String bucket) {
        ossClient.createBucket(bucket);
    }

    @Override
    public DfsFile uploadFile(InputStream inputStream, String fileName) {

        return null;
    }

    @Override
    public DfsFile uploadFile(InputStream inputStream, String bucket, String fileName) {
        return null;
    }

    @Override
    public String getFileUrl(String fileName) {
        return null;
    }

    @Override
    public String getFileUrl(String bucket, String fileName) {
        return null;
    }

    @Override
    public String getFileUrl(String bucket, String fileName, int duration, TimeUnit unit) {
        return null;
    }

    @Override
    public OutputStream getFileObject(String fileName, OutputStream outputStream) {
        return null;
    }

    @Override
    public OutputStream getFileObject(String bucket, String fileName, OutputStream outputStream) {
        return null;
    }

    @Override
    public String removeFile(String fileName) {
        return null;
    }

    @Override
    public String removeFile(String bucket, String fileName) {
        return null;
    }

    @Override
    public String removeFiles(List<String> fileNames) {
        return null;
    }

    @Override
    public String removeFiles(String bucket, List<String> fileNames) {
        return null;
    }
}
